import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import Wave from "../common/Wave2.0";
import ws from "../../ws";
import ConfigPage from "./ConfigPage";

class WaveCompare extends PureComponent {
  componentDidMount() {
    ws.addConnect('/compare/119')
    ws['/compare/119'].onmessage = event => {
      console.log(event.data);
    }
  }

  render() {
    return (
      <div>
        <div>
          <Wave uuid={'f90b9339'} trieIndex={'333a-49'} stageWidth={1000}/>
        </div>
        <div>
          <ConfigPage
            nodes={item.nodes}
            addLine={this.addLine(index)}
            delLine={this.delLine(index)}
            lines={item.lines}
            updateNodes={this.updateNodes}
          />
        </div>
      </div>
    );
  }
}

WaveCompare.propTypes = {};

export default WaveCompare;
